﻿using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
namespace MvcTasks.Models
{
    public interface IDbContextWrapper : IDisposable
    {
        IDbContextWrapper Open(string connectionString);
        IDbContextWrapper Open();
         DbSet<RandomTask> RandomTask { get; set; }
         DbSet<Genre> GenreSet   { get; set; }
         void SaveChanges();

         DbEntityEntry Entry(RandomTask tasks);


         void Detach(object entity);
    }
}
